import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import api from './api' // 导入api接口
Vue.prototype.$api = api; // 将api挂载到vue的原型上
//plugins
import { Message } from "element-ui"; // element-ui
import { Toast } from "vant";
Message.install = function (Vue, options) {
  Vue.prototype.$message = Message;
};
Vue.use(Message);
Vue.use(Toast);
import "lib-flexible/flexible";
Vue.config.productionTip = false;

import '@/assets/css/reset.css'
import '@/assets/css/demo.css'
import '@/assets/css/animation.css'
import { isCode } from "@/utils"
Vue.prototype.$isCode = isCode
//全局指令
import Directives from './directives/'
Vue.use(Directives)
import Bridge from '@/utils/JSbridge.js'
Vue.prototype.$bridge = Bridge
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
